# libreportgtk - the stuff shared among gtk clients (abrt-gui, wizard)
libreport_gtk_includedir = \
    $(includedir)/libreport

libreport_gtk_include_HEADERS = \
    internal_libreport_gtk.h \
    problem_details_widget.h \
    problem_details_dialog.h \
    problem_utils.h

lib_LTLIBRARIES = \
    libreport-gtk.la

libreport_gtk_la_SOURCES = \
    utils.c \
    event_config_dialog.c \
    secrets.c \
    hyperlinks.c \
    autowrapped_label.c \
    workflow_config_dialog.c \
    config_dialog.c \
    ask_dialogs.c \
    search_item.c search_item.h \
    problem_details_widget.c problem_details_widget.h \
    problem_details_dialog.c problem_details_dialog.h \
    desktop-utils.c problem_utils.h \
    libreport-gtk.sym

libreport_gtk_la_CPPFLAGS = \
    -I$(srcdir)/../include \
    -I$(srcdir)/../lib \
    -Wno-error=unused-local-typedefs \
    $(GTK_CFLAGS) \
    $(GLIB_CFLAGS) \
    $(GIO_CFLAGS) \
    -DWORKFLOWS_DIR=\"$(WORKFLOWS_DIR)\" \
    -DGDK_DISABLE_DEPRECATION_WARNINGS \
    -D_GNU_SOURCE
libreport_gtk_la_LDFLAGS = \
    -version-info 1:1:0

if HAVE_LD_VERSION_SCRIPT
libreport_gtk_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libreport-gtk.sym
endif

libreport_gtk_la_LIBADD = \
    $(GTK_LIBS) \
    $(GLIB_LIBS) \
    $(GIO_LIBS) \
    ../lib/libreport.la

noinst_PROGRAMS = test-desktop-utils
test_desktop_utils_CFLAGS = -I$(srcdir) $(GIO_CFLAGS)
test_desktop_utils_LDADD = libreport-gtk.la

EXTRA_DIST = libreport-gtk.pc.in

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libreport-gtk.pc
